package org.jeecg.modules.Job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.DateUtils;
import org.jeecg.modules.CheckPlan.entity.CheckPlan;
import org.jeecg.modules.CheckPlan.service.ICheckPlanService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
public class CheckTaskJob implements Job {

    @Autowired
    private ICheckPlanService checkPlanService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info(String.format(" 普通定时任务 CheckTaskJob !  时间:" + DateUtils.getTimestamp()));
        checkPlanService.generateCheckTask();
    }
}
